package com.eshealthy.dao;

import com.eshealthy.entity.Patient;
import com.eshealthy.entity.PatientSchedule;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.sql.Timestamp;
import java.util.List;

@Mapper
public interface PatientDao {
    Patient findByTel( String tel);
    void save( Patient patient);

    Patient findAllPatient(String id_card);
    List<PatientSchedule>find(Integer start,Integer rows,Integer id);
    void addSchedule(String pid, String did,  Date scheduled);

    Integer findTotalsSchedule(Integer id);
}
